<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/view/common/init.jsp"%>
<%
	String path = request.getContextPath();
%>

<!--header-->
<%@ include file="header.jsp"%>
<!--header-->
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="443" scope="col"><img src="view/images/bg_01.jpg" width="443" height="198" /></td>
    <td width="426" scope="col" background="view/images/bg_02.jpg" valign="bottom">
	<table width="375" height="158" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <th height="10" bgcolor="#326684" scope="col" align="left" class="css1">公司新闻</th>
        <th bgcolor="#326684" scope="col" height="10" align="right" class="css2"><span><a href="newsAction.do?method=newsList" target="_blank">MORE.</a></span></th>
      </tr>
      <logic:present name="newsList">
		<logic:iterate id="list" name="newsList" length="6">
      <tr>
         <td class="css" align="left">
		 <bean:define id="newsId" value="${list.newsId}" />
		 <a href="newsAction.do?method=show&nId=${list.newsId}">${list.newsTitle}</a></td>
         <td class="css" align="right">
        <bean:write name="list" property="lastModifielDate" format="yyyy-MM-dd"/></td>
      </tr>
      </logic:iterate>
	</logic:present>
	<logic:notPresent name="newsList">	
		 	暂无数据
		 </logic:notPresent>	
      <tr>
        <th bgcolor="#326684"  height="10" scope="col" align="left" class="css1">产品展示</th>
        <th bgcolor="#326684" height="10" align="right" class="css2"><span><a href="productAction.do?method=proList" target="_blank">MORE.</a></span></th>
      </tr>
    </table></td>
    <th width="134" scope="col" background="view/images/bg_03.jpg" ></th>
  </tr>
  <tr>
    <td><img src="view/images/bg_04.jpg" /></td>
    <td valign="top" background="view/images/bg_05.jpg">
	<div id="demo" style="overflow:hidden;height:180px;width:375px;color:#ffffff">
			  <table width="350" height="90" border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0"> 
                <tr>
                  <td id="demo1" valign="middle"> 
				  <table border="0" cellpadding="2">
				  <tr> 										
			<logic:present name="proList">
				<logic:iterate id="list" name="proList" length="10">		
										<td valign="middle" align="center"> 
										<span class="unnamed2"> 
										<a target="_blank" href="productAction.do?method=show&pId=${list.productId}"> 
										<img border="0" src="view/products/UploadImg/${list.productPic}"  alt="${list.productName}"  onload="proDownImage(this,180,200);"></a></span></td> 
				</logic:iterate>
		 </logic:present> 	
		 <logic:notPresent name="proList">	
		 	暂无数据
		 </logic:notPresent>								
									</tr> 
				  </table>
				  </td>
                  <td height="90" valign="middle" id="demo2"></td> 
                </tr>
              </table>
			</div>
			<script> 
                          var speed=20//速度数值越大速度越慢
                          demo2.innerHTML=demo1.innerHTML
                          function Marquee(){
                          if(demo2.offsetWidth-demo.scrollLeft<=0)
                          demo.scrollLeft-=demo1.offsetWidth
                          else{
                          demo.scrollLeft++
                          }
                          }
                          var MyMar=setInterval(Marquee,speed)
                          demo.onmouseover=function() {clearInterval(MyMar)}
                          demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                        </script> 
	</td>
    <td background="view/images/bg_06.jpg"></td>
  </tr>
  <tr>
    <td rowspan="2"><img src="view/images/bg_07.jpg" width="443" height="175" /></td>
    <td><img src="view/images/index_09.jpg" width="426" height="103" /></td>
    <td bgcolor="#ffffff" width="134" height="103" /></td>
  </tr>
  <tr>
    <td><img src="view/images/footer_01.jpg" width="426" height="72" /></td>
    <td ><img src="view/images/footer_02.jpg" width="134" height="72" /></td>
  </tr>  
  <!--footer-->
<%@ include file="index_footer.jsp"%>
<!--footer-->
</table>



</body>
</html>
